import {createAPI,createParamsAPI,createUploadAPI} from '@/utils/http'

export const getAnnouncementList = data => createParamsAPI('/comment/announcement/search', 'post', data)  //获取公告列表
export const saveAnnouncement = data => createAPI(`/comment/announcement/save`, 'post', data)  //
export const updateAnnouncement = data => createAPI(`/comment/announcement/update`, 'put', data)  //
export const deleteAnnouncement = data => createAPI(`/comment/announcement/delete/${data.id}`, 'delete', data)  //
